/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.felisberto.serialfwder.socket.server;

import org.jboss.netty.channel.Channel;


/**
 *
 * @author Filipe
 */
public class NettySession{

    private Channel channel;

    public NettySession(Channel channel) {

        this.channel = channel;
    }

    public void sendPacket(String data) {
        channel.write(data+"\n");
        
    }
    
    /**
     * @param channel the channel to set
     */
    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    private void closeChannel(Channel channel) {
        channel.close();
    }


}
